package com.hua.error;

import com.hua.result.R;
import com.hua.result.ResultCodeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.RequiredArgsConstructor;

/**
 * @author ONE-X
 * @date 2020/11/11
 */
@Data
public class CustomException extends RuntimeException {
	private static final long serialVersionUID = -4096086160269012865L;
	private String message;
	private R r;
	public CustomException(String message) {
		super();
		this.r = R.error().message(message);
	}

}
